<template>
	<div>
		源数据：<input type="text" @keyup="fn2" v-model="m" />
	</div>
</template>

<script>
	export default {
		name: "currency",
		props: {
			default: {
				type: String,
				event: 'keyup'
			}
		},
		data(){
			return{
				m:this.value
			}
		},
		methods: {
			fn2(){
				if(this.m==null||this.m==""){
//					this.m="";
				}else{
					this.$emit('input',this.m+".000");
				}

			}
		}
	}
</script>

<style>

</style>
